import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
const eventBus=new Vue
Vue.prototype.eventBus=eventBus
//配置axios,后续用来请求Api接口，相当于HTML中的ajax
import axios from "axios";//导入axios依赖包
Vue.prototype.$axios = axios;

// 在main.js中进行配置， 配置elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//vant
import Vant from 'vant'
import 'vant/lib/index.css';
Vue.use(Vant)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
